package com.hps.boot.shiro.auth;

import lombok.AllArgsConstructor;
import org.apache.shiro.authc.AuthenticationToken;

/**
 * @author heps
 * @since 2020/6/9 18:41
 */
@AllArgsConstructor
public class ShiroAuthToken implements AuthenticationToken {

  private String token;

  @Override
  public Object getPrincipal() {
    return token;
  }

  @Override
  public Object getCredentials() {
    return token;
  }
}
